﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class DOMinMax
{
    static void Main()
    {
        int[] Arr = { 2, 3, -6, 2, -1, 6, 4, -8, 8 };
        int min = Arr[0];
        int max = Arr[0];
        //min
        for (int i = 0; i < Arr.Length; i++) 
        {
            if (Arr[i] < min) 
            {
                min = Arr[i];
            }
            if (Arr[i] > max) 
            {
                max = Arr[i];
            }
        }
    }
}

